$(function() {
	$(".c-check1").on("click", function() {
		if ($(this).hasClass("c-check2")) {
			$(this).removeClass("c-check2").addClass("on-check1");
		} else {
			$(this).addClass("c-check2").removeClass("on-check1");
		}

});

$('form').validator( {
	stopOnError : "true",
	theme : "simple_right",
	ignore : ':hidden',
	fields : {
		//'email' : 'required;email;'
	}
});

//校验账号是否处于未激活状态
$('#btnDenglu').click(function(){
	var shoujihm = $('#shoujihm').val();
	$.ajax({
		url:path+'/yonghu/getKehuxxByShoujihm',
		type:'POST',
		data:{shoujihm:shoujihm},
		async:false,
		success:function(data) { 
			if(data == '') {
				window.location.href= path+'/jump/toZhaohuimm?shoujihm='+shoujihm;
			}else if(data.zhuangtai == 4) {
				window.location.href= path+'/jump/toZhaohuimm?shoujihm='+data.shoujihm;
			}else{
				$('#login').submit(); 
			}
		}
	});
});
});